﻿@GridHelpers.Grid(g => g
    .SetSorting(Html.Sorting(model=>model.Sorting))
    .AddHeader(h => h.
        Title("coucou")
        .Sorting("UserName")
    .AddForm(f => f.
        )
    .AddHeader())
    
    
    @section JQueryDocumentReady
{
        <script type="text/javascript">
            $(document).ready(function () {
                $(".form").form();
                $(".window").window();
                $(".tooltip").tooltip();
                $(".grid").grid({
                    sorting: function (currentpage, currentSorting) {
                        {
                        $.ajax(
                            "ManageUser",

                            ManageUser.getUsersList(
                                currentSorting, 
                                currentPage,
                                $(this).data("filter.listUser"));
                        }, 
                    pagination: function (currentpage, currentSorting) {
                        {
                            ManageUser.getUsersList(
                                currentSorting, 
                                currentPage,
                                $(this).data("filter.listUser"));
                        }
                    }
                });
            });
        </script>
    }
